﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PeisongWeb
{
    public class customerPage:basePage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            if (logic.customer.userId == 0)
            {
                string url = Request.Url.ToString();
                Response.Redirect("/login.html?reUrl=" + Server.UrlEncode(url));
            } 
        }
        public static bool allowAccess(int powers)
        {
            return logic.customer.allowAccess(powers.ToString());
        }

        public enum companyType
        {
            Provider = 1,   //供应商
            Buyer = 2,      //采购商
            distribution = 3,  //物流
        }
    }
}
